-- GENERATED SPELL FOR [Vargul Blighthound] --


function spell0_29889(pUnit, Event) --@Gnaw Bone,n/a--
pUnit:FullCastSpellOnTarget(50046,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29889', 649, 1)
end

function Sorts_29889(pUnit, Event)
local choix_sorts_29889 = math.random(0, 0)
if choix_sorts_29889 == 0 then
pUnit:RegisterEvent('spell0_29889', 1, 1)
end
end

function mob29889_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29889', math.random(1500, 3000), 1)
end

function mob29889_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29889_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29889_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29889, 1, 'mob29889_Action')
RegisterUnitEvent(29889, 2, 'mob29889_Leave')
RegisterUnitEvent(29889, 3, 'mob29889_Kill')
RegisterUnitEvent(29889, 4, 'mob29889_Die')
